Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jake python2 demo notebooks #2150

Merged
merged 8 commits into from
Apr 6, 2022
Merged

Jake python2 demo notebooks #2150

merged 8 commits into from
Apr 6, 2022

Conversation

jakemulf
Copy link
Contributor

No description provided.

offset = expressionToNanos("10D")
now = currentTime()
time_interval = to_nanos("00:01:00")
offset = to_nanos("240:00:00")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is nasty, but for a 1-to-1 matching makes sense

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah unless I missed it I didn't see an expressionToNanos equivalent in the new API so 🤷

You could do to_period and there's probably a way to convert that period to nanos but that's not apparent right now

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, agreed

daily_data_binned = daily_data.update("TimestampMinute = lowerBin(Timestamp, nanos_bin)")\
.dropColumns("Timestamp")\
.aggBy(agg_list, "TimestampMinute")
daily_data_binned = daily_data.update(formulas=["TimestampMinute = lowerBin(Timestamp, nanos_bin)"])\
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we have column names with pep8 standards?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong opinion either way

@jakemulf jakemulf merged commit e837001 into demo Apr 6, 2022
@jakemulf jakemulf deleted the jake-python2-demo-notebooks branch April 6, 2022 13:41
@github-actions github-actions bot locked and limited conversation to collaborators Apr 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants